package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * <p>
 * 用户粉丝表
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-07
 */
@TableName("t_fens")
public class Fens extends Model<Fens> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 用户id
     */
	@JsonIgnore
	private Long uid;

    /**
     * 用户guid
     */
	@JsonIgnore
	private String guid;

    /**
     * 用户guid
     */
	@JsonIgnore
	private String pguid;

	@JsonIgnore
	private Long mid;
	@JsonIgnore
	private Long mpid;
	@JsonIgnore
	private Long modifier;

    /**
     * 父id
     */
	private Long puid;
    /**
     * 粉丝级别@1：一级；2:二级
     */
	@TableField("level_type")
	private Integer levelType;

    /**
     * 下属状态@1：粉丝；2：会员
     */
	@JsonIgnore
	private Integer status;
    /**
     * 状态@1：有效；0：无效 当下属状态由粉丝转会员 粉丝记录会自动失效
     */
	@JsonIgnore
	private Integer state;
    /**
     * 来源方式@1：海报连接；2：激活码
     */
	@TableField("origin_type")
	private Integer originType;

	@TableField(exist = false)
	private Integer total;

	private BigDecimal bonuses;
	private String nickname;
	private String avatarpic;

	@JsonIgnore
	private String page;
	@JsonIgnore
	private String act;
	@JsonIgnore
	private String ywid;

	private Date createtime;
	@JsonIgnore
	private Date modifytime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getPuid() {
		return puid;
	}

	public void setPuid(Long puid) {
		this.puid = puid;
	}

	public Integer getLevelType() {
		return levelType;
	}

	public void setLevelType(Integer levelType) {
		this.levelType = levelType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getOriginType() {
		return originType;
	}

	public void setOriginType(Integer originType) {
		this.originType = originType;
	}

	public BigDecimal getBonuses() {
		return bonuses;
	}

	public void setBonuses(BigDecimal bonuses) {
		this.bonuses = bonuses;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvatarpic() {
		return avatarpic;
	}

	public void setAvatarpic(String avatarpic) {
		this.avatarpic = avatarpic;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getAct() {
		return act;
	}

	public void setAct(String act) {
		this.act = act;
	}

	public String getYwid() {
		return ywid;
	}

	public void setYwid(String ywid) {
		this.ywid = ywid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getPguid() {
		return pguid;
	}

	public void setPguid(String pguid) {
		this.pguid = pguid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Fens{" +
			"id=" + id +
			"avatarpic=" + avatarpic +
			", uid=" + uid +
			", puid=" + puid +
			", levelType=" + levelType +
			", bonuses="+ bonuses +
			", status=" + status +
			", state=" + state +
			", originType=" + originType +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}

}
